package Thread.demo3;

import Thread.demo2.MyThread2;

/**
 * 实现了Runnable的方式来实现多线程,获取线程的名字
 * @author
 * @create 2018-10-09 15:13
 **/
public class ThreadTest3 {

    public static void main(String[] args) {
        MyThread3 myThread = new MyThread3();
        Thread thread1 = new Thread(myThread,"thread1");
        Thread thread2 = new Thread(myThread,"thread2");
        thread1.start();
        thread2.start();

    }
}
